Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding the ability to provide custom login token identity #3

Merged
merged 3 commits into from
Jul 20, 2023

Conversation

markmark206
Copy link
Owner

before this change, the identity associated with the login token was the same as the identity associated with the one-time password.

for example, if the one-time-password was associated with an email address (e.g. luigi@mansion), the identity that would be associated with their login token would also be luigi@mansion).

sometimes, it might be useful to associate the login token with a different identity (for example, the id of the user that was created when when the OTP was used to confirm user's identity).

This change provides the ability to provide a function that would generate the identity for the login token. The function receives the One-Time-Passwords identity as its input parameter.

@markmark206 markmark206 merged commit fae9708 into main Jul 20, 2023
1 check passed
@markmark206 markmark206 deleted the custom-lt-identity branch July 20, 2023 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant